﻿package plugin.fashen.game
{
    import __AS3__.vec.*;
    import flash.events.*;
    import flash.utils.*;

    public class RingTimer extends Object
    {
        private var timer:Timer;
        public var funVec:Vector.<Function>;

        public function RingTimer()
        {
            this.funVec = new Vector.<Function>;
            this.timer = new Timer(50);
            this.timer.addEventListener(TimerEvent.TIMER, this.doTime);
            return;
        }// end function

        public function startTime() : void
        {
            this.timer.start();
            return;
        }// end function

        public function stopTime() : void
        {
            this.timer.stop();
            return;
        }// end function

        protected function doTime(event:TimerEvent) : void
        {
            var _loc_2:Function = null;
            for each (_loc_2 in this.funVec)
            {
                
                this._loc_2();
            }
            return;
        }// end function

    }
}
